package com.shangjinrong.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 积分等级表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "integral_grade")
public class IntegralGrade {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 积分区间开始
     */
    @TableField(value = "integral_start")
    private Integer integralStart;

    /**
     * 积分区间结束
     */
    @TableField(value = "integral_end")
    private Integer integralEnd;

    /**
     * 借款额度
     */
    @TableField(value = "borrow_amount")
    private BigDecimal borrowAmount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_INTEGRAL_START = "integral_start";

    public static final String COL_INTEGRAL_END = "integral_end";

    public static final String COL_BORROW_AMOUNT = "borrow_amount";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETED = "is_deleted";
}